<?php if (isset($upFromTopicList) && isset($myWork)) { ?>
    <div style="width: 100%;">
        <div class="am-text-default web-black-color web-right-bar-tittle">
            专题的推荐
        </div>
        <?php foreach ($upFromTopicList as $fromTopicMsg) {
            if ($fromTopicMsg->UpCount > 0) { ?>
                <a data-forward="controller=topic_show&topic_id=<?= $fromTopicMsg->TopicId ?>"
                   onclick="act_content(this)">
                    <div class="am-g" style="margin: 10px 0">
                        <div class="am-u-sm-4" style="padding: 0;">
                            <img class="am-img am-circle am-img-responsive" width="60" height="60"
                                 style="margin: 0 auto"
                                 src="<?php echo "{$CfgPara->httproot}/topic_pic/" . make_img_name::make_img_mini_name($fromTopicMsg->Picture) ?>"/>
                        </div>
                        <div class="am-u-sm-8" style="padding: 5px 0 0 10px;">
                            <div class="am-text-truncate" style="width: 100%;">
			                <span class="am-text-middle">
			                	<span class="web-main-color "><?= $fromTopicMsg->Name ?></span>
				                <br/>
				                <span class="web-black-color">
				                	<i class="am-icon-heart-o am-icon-fw"></i><?= $fromTopicMsg->UpCount; ?>次推荐
				                </span>
			                </span>
                            </div>
                        </div>
                    </div>
                </a>
            <?php }
        } ?>
    </div>
<?php } ?>